/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#include "utd_client.h"
namespace Keels {
namespace UDMF {
UtdClient::UtdClient()
{
    Init();
}

UtdClient::~UtdClient() {}

UtdClient& UtdClient::GetInstance()
{
    static auto instance = new UtdClient();
    return *instance;
}

void UtdClient::Init() {}

Status UtdClient::GetTypeDescriptor(const std::string& typeId, std::shared_ptr<TypeDescriptor>& descriptor)
{
    return Status::E_OK;
}

bool UtdClient::IsValidFileExtension(const std::string& fileExtension)
{
    return true;
}

bool UtdClient::IsValidMimeType(const std::string& mimeType)
{
    return true;
}

Status UtdClient::GetFlexibleTypeDescriptor(const std::string& typeId, std::shared_ptr<TypeDescriptor>& descriptor)
{
    return Status::E_OK;
}

Status UtdClient::GetUniformDataTypeByFilenameExtension(
    const std::string& fileExtension, std::string& typeId, std::string belongsTo)
{
    return Status::E_OK;
}

Status UtdClient::GetUniformDataTypeByMIMEType(const std::string& mimeType, std::string& typeId, std::string belongsTo)
{
    return Status::E_OK;
}

Status UtdClient::IsUtd(std::string typeId, bool& result)
{
    return Status::E_OK;
}
} // namespace UDMF
} // namespace Keels
